package com.erp.erp_mask.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * @TableName t_permissions
 */
@TableName(value = "t_permissions")
@Data
public class TPermissions implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long permissionId;

    /**
     *
     */
    private String permissionName;

    /**
     *
     */
    private String resourceType;

    /**
     *
     */
    private String icon;

    /**
     *
     */
    private String permCode;

    /**
     *
     */
    private Integer sort;

    /**
     *
     */
    private String url;

    /**
     *
     */
    private Integer parentId;
    @TableField(exist = false)
    private List<TPermissions> children;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}